package com.itqf.controller;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 徐老板
 * @date 2020/2/2   8:57
 */
@Controller
public class LogoutController {

    @RequestMapping("/logout")
    private String logout(){
        Subject subject = SecurityUtils.getSubject();
        subject.logout();
        return "redirect:/sys/login.html";
    }
}
